<?php
/**
 * 问题反馈控制器:后台
 * Created by PhpStorm.
 * User: zxj
 * Date: 17/5/1
 * Time: 上午9:39
 */

namespace App\Http\Controllers\Admin;

use App\Models\Response;

class ResponseController extends BaseController
{
    public function __construct(Response $response)
    {
        parent::__construct();
        $this->response = $response;
    }


    public function getIndex(){


        return view('admin.response.index');


    }

    /**
     *
     * 后台显示问题反馈控制器
     *
     */
    public function getList(){
        $res = $this->response->getResponseList(request());
        return view("admin.problem.list")->with('res',$res);
    }

    /**
     * 回复
     */
    public function postRespon(){
        $res = $this->response->reply(request());
        return ajax_return($res);
    }
}